
 
 F u n c t i o n :   l a b e l l e d B y ( d o m E l e m e n t O r C S S S e l e c t o r ,   t a r g e t - d o m E l e m e n t O r C S S S e l e c t o r ) 
 
 
 
 D e s c r i p t i o n :   S p e c i f i e s   t h a t   t h e   a c c e s s i b l e   n a m e   f o r   a n   e l e m e n t   i s   t o   b e   s e t   u s i n g   o n e   o r   m o r e   o t h e r   e l e m e n t s . 
 
 
 
 R e t u r n s :   O r i g i n a l   O b j e c t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 N o t e :   T h e   l a b e l l e d B y ( )   f u n c t i o n   w i l l   a u t o m a t i c a l l y   s e t   t h e   a c c e s s i b l e   n a m e   f o r   a n   e l e m e n t ,   e v e n   i f   t h e   t a r g e t   e l e m e n t s   d o   n o t   i n c l u d e   a n   i d .   I t   w i l l   a u t o m a t i c a l l y   m a n a g e   t h e   a r i a - l a b e l l e d b y   a t t r i b u t e   a c c o r d i n g l y . 
 
 
 
 E x a m p l e : 
 
 
 
 $ A . l a b e l l e d B y ( d o m E l e m e n t ,   d o m E l e m e n t L a b e l ) ; 
 
 
 
 $ A . l a b e l l e d B y ( " # l i s t b o x - i d " ,   " . l a b e l - c o u n t r y ,   . l a b e l - s t a t e " ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 $ A ( d o m E l e m e n t ) . l a b e l l e d B y ( d o m E l e m e n t L a b e l ) ; 
 
 
 
 $ A ( " # l i s t b o x - i d " ) . l a b e l l e d B y ( " . l a b e l - c o u n t r y ,   . l a b e l - s t a t e " ) ; 
 
 